package com.food.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.food.configure.Result;
import com.food.entity.PurchaseLog;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author
 * @since 2021-04-04
 */
public interface PurchaseLogService extends IService<PurchaseLog> {
    /**
     * 编辑-增加采购日志
     * @param purchaseLog
     * @return
     */
    Result<PurchaseLog> updatePurchaseLog(PurchaseLog purchaseLog);

    Result<PurchaseLog> delPurchaseLog(PurchaseLog purchaseLog);

    Result<PurchaseLog> batchDelPurchaseLog(PurchaseLog purchaseLog);

    Result<PurchaseLog> queryPurchaseLog(PurchaseLog purchaseLog);

    Result<PurchaseLog> queryPurchaseLogByPage(PurchaseLog purchaseLog);

    Result<PurchaseLog> queryPurchaseLogById(PurchaseLog purchaseLog);

    /**
     * 录入采购--修改采购状态
     * @param purchaseLog
     * @return
     */
    Result<PurchaseLog> updateStatus(PurchaseLog purchaseLog);

}
